package com.hzw.entity;

import com.hzw.common.MapperGenerator;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Entity
@Table( name ="user" )
public class User {
    private static final long serialVersionUID = 1L;

    @Column(name = "id" )
    @Id
    private String id;

    @Column(name = "username" )
    private String username;

    @Column(name = "password" )
    private String password;

    @Column(name = "sex" )
    private String sex;

    @Column(name = "real_name" )
    private String realName;

    @Column(name = "phone" )
    private String phone;

    @Column(name = "email" )
    private String email;

    @Column(name = "loginTime" )
    private String loginTime;

    @Column(name = "registerTime" )
    private String registerTime;

    @Column(name = "status" )
    private Integer status;

    @Column(name = "address" )
    private String address;

    private Integer pageNum;

    private Integer pageSize;
    public User () {
    }

    public static void main(String[] args) {
        System.out.println(MapperGenerator.genMapper(com.hzw.entity.User.class));
    }

}

